package com.scpii.universal.pns.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.scpii.universal.hibernate.dao.BaseDao;
import com.scpii.universal.hibernate.intface.BaseInterface;
import com.scpii.universal.pns.hibernate.entity.TagValues;
import com.scpii.universal.pns.hibernate.entity.Tags;

public class TagsService implements BaseInterface<Tags> {
	
	private BaseDao<Tags> tagsDao;
	
	public void setTagsDao(BaseDao<Tags> tagsDao) {
		this.tagsDao = tagsDao;
	}

	@Override
	public Tags get(Integer id) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Tags> getAll() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Tags get(String propertyName, Object value) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Tags> getList(String propertyName, Object value)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Long getTotalCount() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void save(Tags obj) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void update(Tags obj) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(Tags obj) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(Integer id) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public List<Tags> hqlGetList(String hql, Map<String, Object> argsMap)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void hqlUpdate(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Long hqlGetNums(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Tags> sqlGetList(String sqls, Map<String, Object> argsMap)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void sqlUpdate(String sqls, Map<String, Object> argsMap)
			throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Long sqlGetNum(String sqls, Map<String, Object> argsMap)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	public List<Tags> getTagsByAppId(long appId){
		Map<String, Object> argsMap = new HashMap<String, Object>();
		argsMap.put("objectId", appId);
		return tagsDao.hqlGetList("GET_TAGS_BY_APPID", argsMap);
	}

}
